package com.ruoyi.project.modules.virtualUsageFieldMerge.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.modules.virtualUsageFieldMerge.mapper.VirtualUsageFieldMergeMapper;
import com.ruoyi.project.modules.virtualUsageFieldMerge.domain.VirtualUsageFieldMerge;
import com.ruoyi.project.modules.virtualUsageFieldMerge.service.IVirtualUsageFieldMergeService;
import com.ruoyi.common.core.text.Convert;

/**
 * 虚拟用况出参融合Service业务层处理
 * 
 * @author smallrain
 * @date 2022-05-21
 */
@Service
public class VirtualUsageFieldMergeServiceImpl implements IVirtualUsageFieldMergeService 
{
    @Autowired
    private VirtualUsageFieldMergeMapper virtualUsageFieldMergeMapper;

    /**
     * 查询虚拟用况出参融合
     * 
     * @param id 虚拟用况出参融合主键
     * @return 虚拟用况出参融合
     */
    @Override
    public VirtualUsageFieldMerge selectVirtualUsageFieldMergeById(Long id)
    {
        return virtualUsageFieldMergeMapper.selectVirtualUsageFieldMergeById(id);
    }

    /**
     * 查询虚拟用况出参融合列表
     * 
     * @param virtualUsageFieldMerge 虚拟用况出参融合
     * @return 虚拟用况出参融合
     */
    @Override
    public List<VirtualUsageFieldMerge> selectVirtualUsageFieldMergeList(VirtualUsageFieldMerge virtualUsageFieldMerge)
    {
        return virtualUsageFieldMergeMapper.selectVirtualUsageFieldMergeList(virtualUsageFieldMerge);
    }

    /**
     * 新增虚拟用况出参融合
     * 
     * @param virtualUsageFieldMerge 虚拟用况出参融合
     * @return 结果
     */
    @Override
    public int insertVirtualUsageFieldMerge(VirtualUsageFieldMerge virtualUsageFieldMerge)
    {
        return virtualUsageFieldMergeMapper.insertVirtualUsageFieldMerge(virtualUsageFieldMerge);
    }

    /**
     * 修改虚拟用况出参融合
     * 
     * @param virtualUsageFieldMerge 虚拟用况出参融合
     * @return 结果
     */
    @Override
    public int updateVirtualUsageFieldMerge(VirtualUsageFieldMerge virtualUsageFieldMerge)
    {
        return virtualUsageFieldMergeMapper.updateVirtualUsageFieldMerge(virtualUsageFieldMerge);
    }

    /**
     * 批量删除虚拟用况出参融合
     * 
     * @param ids 需要删除的虚拟用况出参融合主键
     * @return 结果
     */
    @Override
    public int deleteVirtualUsageFieldMergeByIds(String ids)
    {
        return virtualUsageFieldMergeMapper.deleteVirtualUsageFieldMergeByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除虚拟用况出参融合信息
     * 
     * @param id 虚拟用况出参融合主键
     * @return 结果
     */
    @Override
    public int deleteVirtualUsageFieldMergeById(Long id)
    {
        return virtualUsageFieldMergeMapper.deleteVirtualUsageFieldMergeById(id);
    }
}
